package org.example.myleet.p884;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(JsonUtils.parse("[\"sweet\",\"sour\"]", List.class).containsAll(Arrays.stream(solution.uncommonFromSentences("this apple is sweet", "this apple is sour")).collect(Collectors.toList())));
        Assert.isTrue(JsonUtils.parse("[\"banana\"]", List.class).containsAll(Arrays.stream(solution.uncommonFromSentences("apple apple", "banana")).collect(Collectors.toList())));
    }
}
